home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / src / s / sunos4shr.h < prev    next >
C/C++ Source or Header  |  1994-06-21  |  1KB  |  44 lines

  1. /* This file permits building Emacs with a shared libc on Sunos 4.
  2.    To make this work, you must completely replace your C shared library
  3.    using one of the SunOS 4.1.x jumbo replacement patches from Sun.  */
  4.  
  5. #include "sunos4-1.h"
  6.  
  7. /* Say that the text segment of a.out includes the header;
  8.    the header actually occupies the first few bytes of the text segment
  9.    and is counted in hdr.a_text.  */
  10.  
  11. /*  Misleading!  Actually gets loaded after crt0.o */
  12. #define START_FILES pre-crt0.o
  13.  
  14. /*
  15.  *  Kludge!  can't get at symbol "start" in std crt0.o
  16.  *  Who the #$%&* decided to remove the __ characters!
  17.  *  Someone needs to fix this in sysdep.c  with an #ifdef BROKEN_START in
  18.  * sysdep.c.  We do not use this address so any value should do really.  Still
  19.  *  may need it in the future?
  20.  */
  21. #define BROKEN_START
  22. #define TEXT_START 0x2020
  23.  
  24. #define UNEXEC    unexsunos4.o
  25. #define RUN_TIME_REMAP
  26. #define LINKER cc
  27.  
  28. #undef LD_SWITCH_SYSTEM
  29.  
  30. #undef    SYSTEM_MALLOC
  31. #ifndef GNU_MALLOC
  32. #define    GNU_MALLOC
  33. #endif
  34. #ifndef REL_ALLOC
  35. #define    REL_ALLOC
  36. #endif
  37.  
  38. /* khera@cs.duke.edu says this is needed.  */
  39. #define memmove(to, from, size) bcopy (from, to, size)
  40.  
  41. /* brett@kirk.es.go.dlr.de reported this was needed in sunos4-1-3.h,
  42.    so probably it is needed in this configuration too.  */
  43. #define X_IO_BUG
  44.